package com.chance.cc.crawler.prod.command.schedule.commerce.mogu;

import com.chance.cc.crawler.core.CrawlerJob;
import com.chance.cc.crawler.prod.command.job.domain.commerce.mogu.realtime.MoguArticleUrlCrawlerScheduleJob;
import com.chance.cc.crawler.prod.command.schedule.CommonCrawlerJobSchedule;

/**
 * @ClassName mogu
 * @Description TODO
 * @Author songding
 * @Date 2021/10/20 14:24
 * @Version 1.0
 **/
public class MoguCommonCrawlerSchedule extends CommonCrawlerJobSchedule {

    public static void main(String[] args) {
        //每天采集最新评论
        //commonCrawlerScheduleJob(MoguCommentCrawlerScheduleJob.moguCrawlerJob());
        //每天采集文章
       // commonCrawlerScheduleJob(MoguArticleCrawlerScheduleJob.moguCrawlerJob());
        //每月采集一次全品链接
        commonCrawlerScheduleJob(MoguArticleUrlCrawlerScheduleJob.moguCrawlerJob());
    }

    public static void commonCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.republishCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }

    public static void delCrawlerScheduleJob(CrawlerJob crawlerJob){
        crawlerJobScheduleCommand_17.deleteCrawlerJob(crawlerJob.generateCrawlerTriggerKey(),device_name_2);
    }
}
